﻿#pragma once

#include <QDialog>
#include "ui_Purchase_Ticket_Process.h"
#include <string>
#include <deque>
#include <stations.h>
#include <QHash>
#include "AllData.h"

class Purchase_Ticket_Process : public QDialog
{
	Q_OBJECT

public:
	Purchase_Ticket_Process(QWidget *parent = nullptr);
	~Purchase_Ticket_Process();
	void setupStationTable(); // 设置车站表格
	void processTrainSchedules(
		int trainId,
		QVector<train_schedule>& schedules,
		QHash<int, std::string>& stationNames,
		QHash<int, std::string>& trainCodes);
	

	void getCurrentTicketInformation(int row, int column);
	void showBookTicketInformation();

public:
	int start_station_id; // 起始站
	int end_station_id; // 终点站
	
private:
	Ui::Purchase_Ticket_ProcessClass ui;
	
};

